using NHibernate;

namespace Project.Library.NHibernate
{
    /// <summary>
    /// Base class for a repository
    /// </summary>
    public abstract class NHibernateRepositoryBase
    {
        /// <summary>
        /// Gets the session Created by the Unit of Work.
        /// </summary>
        /// <value>The session.</value>
        protected static ISession Session
        {
            get { return NHUnitOfWork.CurrentUOW.GetCurrentSession(); }
        }
    }
}